<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

  </head>
  <body>
    <div class="definicion">
${DefinicionUtils.buildHeaderList('division', 'search')}
      <div class="consulta">
        <table align="center"  width="90%">
          <thead>
            <tr>
          
          <g:sortableColumn property="nombre" title="Nombre" width="300"/>
          <g:sortableColumn property="descripcion" title="Descripci&oacute;n" width="300"/>
          <g:sortableColumn property="especialidad" title="Especialidad" width="200"/>
          <g:sortableColumn property="materias" title="Unds. Curriculares" width="800"/>
          <g:observe classes="${['sortable']}" event="click" function="clickPag"/>
          </tr>
          </thead>
          <tbody>
          <g:each in="${divisionInstanceList}" status="i" var="divisionInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}" style="cursor: pointer" onclick="return goTo('division','create','eOc=edit&amp;id=${divisionInstance.id}','definicion_show')">
              <td>${fieldValue(bean:divisionInstance, field:'nombre')}</td>
              <td>${fieldValue(bean:divisionInstance, field:'descripcion')}</td>
              <td>${fieldValue(bean:divisionInstance, field:'especialidad.nombre')}</td>
              <td>${FormatUtils.sortItems(divisionInstance.materias,"nombre")}</td>
            </tr>
          </g:each>
          </tbody>
        </table>
      </div>
      <div class="paginateButtons">
        <g:paginate total="${divisionInstanceTotal}" />
        <g:observe classes="${['step','prevLink','nextLink']}" event="click" function="clickPag"/>
      </div>
    </div>
  </body>
</html>